﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<script src="<%=ResolveUrl("~/Scripts/fck/fckeditor.js") %>" type="text/javascript"></script>
<script type="text/javascript">
    window.onload = function () {
        var sBasePath = '<%= ResolveUrl("~/Scripts/fck/") %>';
        var oFCKeditor = new FCKeditor('HtmlContent');
        oFCKeditor.Config.Enabled = true;
        oFCKeditor.Config.UserFilesPath = '/Content/UserImages';
        oFCKeditor.Config.UserFilesAbsolutePath = '/Content/UserImages';

        oFCKeditor.Height = '400';
        oFCKeditor.BasePath = sBasePath;
        oFCKeditor.ReplaceTextarea();
    }
</script>
